package {{packageName}}.server.router.utils

import com.firefly.kotlin.ext.http.AccessLogService
import com.firefly.server.http2.router.RoutingContext

/**
 * @author Pengtao Qiu
 */
private val accessLogService: AccessLogService by lazy { AccessLogService("{{artifactId}}-monitor") }

fun recordAccessLog(ctx: RoutingContext, startTime: Long, endTime: Long) =
    accessLogService.recordAccessLog(ctx, startTime, endTime)